package com.fc.mall.portal.service.impl;

import com.fc.mall.portal.dao.BargainProductDao;
import com.fc.mall.portal.domain.BargainProduct;
import com.fc.mall.portal.service.SmsBargainPromotionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by sunny on 2019/10/11.
 */
@Service
public class SmsBargainPromotionServiceImpl implements SmsBargainPromotionService {

    @Autowired
    BargainProductDao bargainProductDao;

    @Override
    public List<BargainProduct> getBargainProductListByPromotion(Long promotionId) {
        return bargainProductDao.queryListByPromotionId(promotionId);
    }
}
